<?php
class Apps_Controller_Action_Customer extends Apps_Controller_Action {
	protected $_namespaceRequestedParams =  'App.Customer';

	protected function __preDispatch() {
        $this->_auth = Apps_Auth::getInstanceCustomer();

        $this->_page_meta_keywords = ''; // HEAD META KEYWORDS
	}

	public function goHome() {
		return $this->_redirect('/');
	}
	public function goToLogin() {
		if($this->_request->getActionName() != 'in') {
			$this->saveRequestedParams();
			$this->_helper->redirector('in', 'u', '');
		}
		return $this;
	}
	public function mustLogin() {
        if(!$this->_auth->hasIdentity()) {
        	$this->goToLogin();
        }
        return $this;
	}
}